package org.mnswf.scorchedearth.messages {
	
	import org.mnswf.net.IUDPMessage;
	import flash.events.EventDispatcher;
	
	/**
	 * @author Danny Patterson
	 */
	public class PlayerMessage extends EventDispatcher implements IUDPMessage {
		
		[Bindable]
		public var name:String;
		[Bindable]
		public var ipAddress:String;
		
		public function PlayerMessage() {}
		
		/**
		 * @see org.mnswf.net.IUDPMessage#toObject
		 */
		public function toObject():Object {
			var obj:Object = new Object();
			obj.name = name;
			obj.ipAddress = ipAddress;
			return obj;
		}
	
	}
	
}